package com.czl.category.web;

import com.czl.category.dao.CategoryMapper;
import com.czl.category.entity.CategoryEntity;
import org.apache.tomcat.jni.Local;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.propertyeditors.CustomDateEditor;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.*;

import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.util.List;

@RestController
@EnableAutoConfiguration
public class CategoryController {
    @Autowired
    private CategoryMapper categoryMapper;

    @GetMapping("/list")
    public List getAreaList( CategoryEntity CategoryEntity) {
        List<CategoryEntity> systemCodeEntityList = categoryMapper.querySystemArea(CategoryEntity);
        return systemCodeEntityList;
    }
}